* {
    padding: 0;
    margin: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /*perspective: 1000px;*/
    transform: translate3d(0, 0, -10000px);
    background-image: url(./bg.png);
    overflow: hidden;
}

.admin_box, .box1, .box2, .box3, .box4 {
    transform-style: preserve-3d;
}

/* admin 星球*/

.admin_box {
    height: 160px;
    width: 160px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) scale(0);
    animation: rot 20s linear infinite;
}

.admin_box>div {
    height: 160px;
    width: 160px;
    background-image: radial-gradient(transparent 70%, rgba(255, 79, 0, 0.5) 100%);
    border: 2px solid rgba(255, 79, 0, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 79, 0, 0.9);
    position: absolute;
}

/* 小星球1 */

.box1 {
    height: 60px;
    width: 60px;
    position: absolute;
    top: 200px;
    animation: rot 18s linear infinite;
}

.box1>div {
    height: 60px;
    width: 60px;
    background-image: radial-gradient(transparent 70%, rgba(208, 241, 20, 0.5) 100%);
    border: 2px solid rgba(208, 241, 20, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(208, 241, 20, 0.9);
    position: absolute;
}

/* 小星球2 */

.box2 {
    height: 80px;
    width: 80px;
    position: absolute;
    top: 350px;
    animation: rot 30s linear infinite;
}

.box2>div {
    height: 80px;
    width: 80px;
    background-image: radial-gradient(transparent 70%, rgba(20, 153, 241, 0.5) 100%);
    border: 2px solid rgba(20, 153, 241, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(20, 153, 241, 0.9);
    position: absolute;
}

/* 小星球3 */

.box3 {
    height: 40px;
    width: 40px;
    position: absolute;
    top: 500px;
    animation: rot 40s linear infinite;
}

.box3>div {
    height: 40px;
    width: 40px;
    background-image: radial-gradient(transparent 70%, rgba(171, 20, 241, 0.5) 100%);
    border: 2px solid rgba(171, 20, 241, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(171, 20, 241, 0.9);
    position: absolute;
}

/* 小星球4 */

.box4 {
    height: 20px;
    width: 20px;
    position: absolute;
    top: 600px;
    animation: rot 28s linear infinite;
}

.box4>div {
    height: 20px;
    width: 20px;
    background-image: radial-gradient(transparent 70%, rgba(20, 208, 241, 0.5) 100%);
    border: 2px solid rgba(20, 208, 241, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(20, 208, 241, 0.9);
    position: absolute;
}

.box3>div:nth-of-type(1), .box2>div:nth-of-type(1), .box1>div:nth-of-type(1), .admin_box>div:nth-of-type(1), .box4>div:nth-of-type(1) {
    transform: rotateY(0deg);
}

.box3>div:nth-of-type(2), .box2>div:nth-of-type(2), .box1>div:nth-of-type(2), .admin_box>div:nth-of-type(2), .box4>div:nth-of-type(2) {
    transform: rotateY(90deg);
}

.box3>div:nth-of-type(3), .box2>div:nth-of-type(3), .box1>div:nth-of-type(3), .admin_box>div:nth-of-type(3), .box4>div:nth-of-type(3) {
    transform: rotateX(90deg);
}

.box3>div:nth-of-type(4), .box2>div:nth-of-type(4), .box1>div:nth-of-type(4), .admin_box>div:nth-of-type(4), .box4>div:nth-of-type(4) {
    transform: rotateY(45deg);
}

.box3>div:nth-of-type(5), .box2>div:nth-of-type(5), .box1>div:nth-of-type(5), .admin_box>div:nth-of-type(5), .box4>div:nth-of-type(5) {
    transform: rotateY(135deg);
}

.box3>div:nth-of-type(6), .box2>div:nth-of-type(6), .box1>div:nth-of-type(6), .admin_box>div:nth-of-type(6), .box4>div:nth-of-type(6) {
    transform: rotateX(45deg);
}

.box3>div:nth-of-type(7), .box2>div:nth-of-type(7), .box1>div:nth-of-type(7), .admin_box>div:nth-of-type(7), .box4>div:nth-of-type(7) {
    transform: rotateX(135deg);
}

@keyframes rot {
    0% {
        transform: translateX(-50%) translateY(-50%) rotateZ(20deg) rotateY(30deg);
    }
    10% {
        transform: translateX(-50%) translateY(-50%) rotateZ(40deg) rotateY(50deg);
    }
    20% {
        transform: translateX(-50%) translateY(-50%) rotateZ(60deg) rotateY(80deg);
    }
    30% {
        transform: translateX(-50%) translateY(-50%) rotateZ(90deg) rotateY(140deg);
    }
    40% {
        transform: translateX(-50%) translateY(-50%) rotateZ(160deg) rotateY(180deg);
    }
    50% {
        transform: translateX(-50%) translateY(-50%) rotateZ(200deg) rotateY(220deg);
    }
    60% {
        transform: translateX(-50%) translateY(-50%) rotateZ(280deg) rotateY(270deg);
    }
    70% {
        transform: translateX(-50%) translateY(-50%) rotateZ(300deg) rotateY(320deg);
    }
    80% {
        transform: translateX(-50%) translateY(-50%) rotateZ(200deg) rotateY(340deg);
    }
    90% {
        transform: translateX(-50%) translateY(-50%) rotateZ(100deg) rotateY(250deg);
    }
    100% {
        transform: translateX(-50%) translateY(-50%) rotateZ(20deg) rotateY(30deg);
    }
}

/* 轨道包裹 */

.pathway_box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translateX(-50%) translateY(-50%) rotateX(-10deg) rotateY(30deg) scale(0);
    width: 800px;
    height: 800px;
    /* animation: pathway_box 100s linear infinite; */
}

.pathway_1, .pathway_2, .pathway_3, .pathway_4 {
    border: 1px solid #ededed;
    border-radius: 50% 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform: translateX(-50%) translateY(-50%) rotateX(0);
}

/* 轨道1 */

.pathway_1 {
    width: 400px;
    height: 400px;
    animation: pathway 30s linear infinite;
}

/* 轨道2 */

.pathway_2 {
    width: 700px;
    height: 700px;
    animation: pathway 20s linear infinite;
}

/* 轨道3 */

.pathway_3 {
    width: 1000px;
    height: 1000px;
    animation: pathway 40s linear infinite;
}

/* 轨道3 */

.pathway_4 {
    width: 1200px;
    height: 1200px;
    animation: pathway 25s linear infinite;
}

/* 轨道动画 */

@keyframes pathway {
    0% {
        transform: translateX(-50%) translateY(-50%) rotateX(110deg) rotateZ(0);
    }
    100% {
        transform: translateX(-50%) translateY(-50%) rotateX(110deg) rotateZ(360deg);
    }
}

/* 轨道盒子动画 */

@keyframes pathway_box {
    0% {
        transform: translateX(-50%) translateY(-50%) rotateX(60deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: translateX(-50%) translateY(-50%) rotateX(160deg) rotateY(60deg) rotateZ(60deg);
    }
    50% {
        transform: translateX(-50%) translateY(-50%) rotateX(90deg) rotateY(-20deg) rotateZ(100deg);
    }
    75% {
        transform: translateX(-50%) translateY(-50%) rotateX(120deg) rotateY(90deg) rotateZ(120deg);
    }
    100% {
        transform: translateX(-50%) translateY(-50%) rotateX(60deg) rotateY(0deg) rotateZ(0deg);
    }
}
